/*
 * Copyright [2010] [GP Software]
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Person.java | Created on Mar 31, 2010
 */
package org.gp.dbtest.core.model;

/**
 * Model for person
 *
 * @author Paul Augustine C. Mendoza
 */
public class Person {

    /** The id */
    private Integer id;

    /** The first name */
    private String firstname;

    /** The last name */
    private String lastname;

    /** The email */
    private String email;

    /** The age */
    private int age;

    /** The default constructor */
    public Person() {
        super();
    }

    /**
     * The constructor with initialization parameters
     *
     * @param firstname the firstname
     * @param lastname  the lastname
     * @param email     the email
     * @param age       the age
     */
    public Person(String firstname, String lastname, String email,
                  int age) {
        this.firstname = firstname;
        this.lastname = lastname;
        this.email = email;
        this.age = age;
    }

    /**
     * Gets the id
     *
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * Sets the id
     *
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Gets the first name
     *
     * @return the first name
     */
    public String getFirstname() {
        return firstname;
    }

    /**
     * Sets the first name
     *
     * @param firstname the first name to set
     */
    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    /**
     * Gets the last name
     *
     * @return the last name
     */
    public String getLastname() {
        return lastname;
    }

    /**
     * Sets the last name
     *
     * @param lastname the last name to set
     */
    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    /**
     * Gets the email
     *
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * Sets the email
     *
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * Gets the age
     *
     * @return the age
     */
    public int getAge() {
        return age;
    }

    /**
     * Sets the age
     *
     * @param age the age to set
     */
    public void setAge(int age) {
        this.age = age;
    }
}
